﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _5._3
{
    class Program
    {
        static void Main(string[] args)
        {
            Random r = new Random();
            int x=r.Next(1, 100);
            Console.WriteLine("guess");
            int i = 1;
            while (i==1) 
            {
                int ret = Convert.ToInt32(Console.ReadLine());
                if(ret==x)
                {
                    Console.WriteLine("恭喜你猜对了");
                    break;
                }
                else if (ret > x)
                {
                    Console.WriteLine("猜大了");
                }
                else
                {
                    Console.WriteLine("猜小了");
                }



            }
            Console.ReadKey();

        }
    }
}
